﻿<?php
	$data=$this->getRows("select * from {$this->prename}setting where type=1");
	//print_r($data);
?>
<article class="module width_full">

	<header><h3 class="tabs_involved">彩种杀大控制</h3></header>
	<table class="tablesorter" cellspacing="0" width="100%">
		<thead>
			<tr>
				<td>彩种名称</td>
				<td>开启/关闭</td>
				<td>启动人数</td>
                <td>启动金额</td>
				<td>操作</td>
			</tr>
		</thead>
		<tbody id="nav01">
            <?php if($data) foreach($data as $var){ ?>
			<tr>
                <input type="hidden" name='id' value="<?=$var['id']?>" />
				<td><?=$var['title']?></td>
				<td><input type="checkbox" name="enable" value="1" <?=$this->iff($var['enable'],'checked')?>/></td>
                <td><input name="count_num" value="<?=$var['count_num']?>"/></td>
                <td><input name="count_money" value="<?=$var['count_money']?>"/></td>
				<td><a href="/admin778899.php/cai/updatesettings/<?=$var['id']?>" target="ajax" method="POST" onajax="caiBeforeUpdateSet" call="caiUpdateSetting">保存修改</a></td>
			</tr>
            <?php  } ?>
		</tbody>
	</table>
</article>
<script type="text/javascript">  
ghhs("nav01","tr");  
</script>